﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BuyProduct.ascx.cs" Inherits="UserControls_BuyProduct" %>
<asp:MultiView runat="server" ID="MultiView1">
    <asp:View runat="server" ID="View1">
        <table>
    <tr>
        <td>Payment method</td>
        <td>
            <asp:UpdatePanel runat="server" ID="updatepanel1" UpdateMode="Conditional"><ContentTemplate>
            <asp:DropDownList runat="server" ID="ddlMethod" AutoPostBack="False" OnSelectedIndexChanged="ddlmethod_SelectedIndexChanged" />
            </ContentTemplate></asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td>Credit card number</td>
        <td><asp:TextBox runat="server" ID="txtCreditNumber" CssClass="required number"/></td>
    </tr>
    <tr>
        <td>New address</td>
        <td><asp:TextBox runat="server" ID="txtNewAddress"></asp:TextBox></td>
    </tr>
    <tr>
        <td>Quantity product</td>
        <td><asp:TextBox runat="server" ID="txtquantity" CssClass="required number"/></td>
    </tr>
    <tr>
        <td colspan="2"><asp:Label runat="server" ID="lblmsg" CssClass="error"></asp:Label></td>
    </tr>
    <tr>
        <td><asp:LinkButton runat="server" ID="btnsubmit" Text="Submit" 
                onclick="btnsubmit_Click"></asp:LinkButton></td>
    </tr>
</table>





    </asp:View>
    <asp:View runat="server" ID="View2">
        <h2>Buy product successfully!</h2>
    </asp:View>
</asp:MultiView>
